package co.fitstart.entity.coupon;

import com.demo2do.core.utils.Alias;

/**
 * 
 * @author haiyan_xiao
 *
 */
@Alias("couponTemplateDiscountType")
public enum DiscountType {
    FIXED_AMOUNT("固定金额", "fixed_amount"),
    PERCENT("全额", "percent"),
    GIFT("礼品券", "gift");

    private String description;

    private String alias;

    DiscountType(String description, String alias) {
        this.description = description;
        this.alias = alias;
    }
    
    /**
     * 
     * @return
     */
    public boolean isFixedAmount() {
        return this.equals(FIXED_AMOUNT);
    }
    
    /**
     * 
     * @return
     */
    public boolean isPercent() {
        return this.equals(PERCENT);
    }

    /**
     * 
     * @return
     */
    public boolean isGife() {
        return this.equals(GIFT);
    }

    /**
     * @return the description
     */
    public String getDescription() {
        return description;
    }

    /**
     * @return the alias
     */
    public String getAlias() {
        return alias;
    }
}
